package com.woniuxy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouzhou
 * @since 2022-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class VoteOption implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "option_id", type = IdType.AUTO)
    private Integer optionId;

    private String optionValue;

    private Integer chosenNum;

    private Integer topicId;

    public VoteOption(String optionValue,Integer topicId){
        this.optionValue = optionValue;
        this.topicId = topicId;
        this.chosenNum = 0;
    }

}
